package com.smart.buss.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.smart.primary.common.page.Page;

import java.util.Date;
/**
 * 
 */
public class BussDakaLog  extends Page{
	private String	id;		//,字段长度32
	private String	remarks;		//备注信息,字段长度255
	private Date	updateDate;		//,字段长度19
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date	createDate;		//,字段长度19
	private String	userId;		//用户编号,字段长度32
	private String	dakaId;		//打卡期号,字段长度32
	private Integer	dakaPrice;		//打卡金,字段长度10
	private Integer	paifaPrice;		//派发金 领取超时则变更为0,字段长度10
	private Integer	dakaStatus;		//打卡日志状态 0 打卡 ，1 已计算 ，2 已领取  ，3 未领取
	private String	userName;		//用户编号,字段长度32
	private Integer	type;		//0正常  ，1 打卡领东西

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName == null ? null : userName.trim();
	}

	public Integer getDakaStatus() {
		return dakaStatus;
	}

	public void setDakaStatus(Integer dakaStatus) {
		this.dakaStatus = dakaStatus;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id == null ? null : id.trim();
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks == null ? null : remarks.trim();
	}

	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId == null ? null : userId.trim();
	}

	public String getDakaId() {
		return dakaId;
	}

	public void setDakaId(String dakaId) {
		this.dakaId = dakaId == null ? null : dakaId.trim();
	}

	public Integer getDakaPrice() {
		return dakaPrice;
	}
	public Double getDaka() {
		return dakaPrice.doubleValue()/100;
	}
	public void setDakaPrice(Integer dakaPrice) {
		this.dakaPrice = dakaPrice;
	}

	public Integer getPaifaPrice() {
		return paifaPrice;
	}
	public Double getPaifa() {
		return paifaPrice.doubleValue()/100;
	}
	public void setPaifaPrice(Integer paifaPrice) {
		this.paifaPrice = paifaPrice;
	}

	@Override
	public String toString() {
		return "BussDakaLog{" +
				"id='" + id + '\'' +
				", remarks='" + remarks + '\'' +
				", updateDate=" + updateDate +
				", createDate=" + createDate +
				", userId='" + userId + '\'' +
				", dakaId='" + dakaId + '\'' +
				", dakaPrice=" + dakaPrice +
				", paifaPrice=" + paifaPrice +
				", dakaStatus=" + dakaStatus +
				", userName='" + userName + '\'' +
				'}';
	}
}
